{include file="public/header" /}

<body>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body ">
                        <blockquote class="layui-elem-quote">欢迎使用: {:env('app.name')}
                            当前管理员:{$admin.nickname}
                            上次登陆时间: {$admin.updated|date='Y-m-d H:i:s'}
                        </blockquote>
                    </div>
                </div>
            </div>
            <div class="layui-row layui-col-space12">
                <div class="layui-col-md4">
                    <div class="layui-card-header">销量累计排行</div>
                    <div class="layui-card-body ">
                        <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                            <table class="layui-table layui-form">
                                <thead>
                                    <tr>
                                        <th>商品名称</th>
                                        <th>商品图</th>
                                        <th>商家</th>
                                        <th>累计销量</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $statc.goods as $v}
                                    <tr>
                                        <td>{$v.title}</td>
                                        <td><img style="width: 100px;" onclick="showimg('{$v.images.0}')"
                                                src="{$v.images.0}" />
                                        </td>
                                        <td>{$v.shopid|getname}</td>
                                        <td>{$v.number}</td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </ul>
                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="layui-card-header">销售额排行</div>
                    <div class="layui-card-body ">
                        <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                            <table class="layui-table layui-form">
                                <thead>
                                    <tr>
                                        <th>商品名称</th>
                                        <th>商品图</th>
                                        <th>商家</th>
                                        <th>累计销售额</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $statc.goodstotal as $v}
                                    <tr>
                                        <td>{$v.title}</td>
                                        <td><img style="width: 100px;" onclick="showimg('{$v.images.0}')"
                                                src="{$v.images.0}" />
                                        </td>
                                        <td>{$v.shopid|getname}</td>
                                        <td>{$v.total}</td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </ul>
                    </div>
                </div>
                <div class="layui-col-md4">
                    <div class="layui-card-header">今日销售排行</div>
                    <div class="layui-card-body ">
                        <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                            <table class="layui-table layui-form">
                                <thead>
                                    <tr>
                                        <th>商品名称</th>
                                        <th>商品图</th>
                                        <th>商家</th>
                                        <th>累计销量</th>
                                        <th>累计销售额</th>

                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach $statc.today as $v}
                                    <tr>
                                        <td>{$v.title}</td>
                                        <td><img style="width: 100px;" onclick="showimg('{$v.images.0}')"
                                                src="{$v.images.0}" />
                                        </td>
                                        <td>{$v.shopid|getname}</td>
                                        <td>{$v.number}</td>
                                        <td>{$v.total}</td>

                                    </tr>
                                    {/foreach}
                                </tbody>
                            </table>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>
</body>
{include file="public/footer"}

</html>